/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tdd;

import java.util.Stack;

/**
 *
 * @author eyrie.chen
 */
public class Print implements Command{
    public void invoke(Stack stack){
        System.out.print(stack.pop());
    }
    @Override
    public String toString(){
        return "CMD print";
    }
}
